//
//  YDAccount.h
//  IngCard
//
//  Created by kf on 2017/7/10.
//  Copyright © 2017年 IngDan. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YDAccountOccupation : NSObject
@property(nonatomic, strong) NSString *ID;
@property(nonatomic, strong) NSString *title;
@property(nonatomic, strong) NSString *companyName;
@property(nonatomic, strong) NSString *companyId;
@property(nonatomic, strong) NSString *location;
@property(nonatomic, strong) NSString *occDescription;
@property(nonatomic, strong) NSString *startYear;
@property(nonatomic, strong) NSString *startMonth;
@property(nonatomic, strong) NSString *endYear;
@property(nonatomic, strong) NSString *endMonth;
@property(nonatomic, strong) NSString *updateTime;
@end

@interface YDAccountEducation : NSObject
@property(nonatomic, strong) NSString *ID;
@property(nonatomic, strong) NSString *schoolId;
@property(nonatomic, strong) NSString *schoolName;
@property(nonatomic, strong) NSString *degree;
@property(nonatomic, strong) NSString *major;
@property(nonatomic, strong) NSString *startTime;
@property(nonatomic, strong) NSString *endTime;
@property(nonatomic, strong) NSString *eduDescription;
@property(nonatomic, strong) NSString *updateTime;
@end

@interface YDAccount : NSObject
@property(nonatomic, strong) NSString *uid;
@property(nonatomic, strong) NSString *mobile;
@property(nonatomic, strong) NSString *head_pic;
@property(nonatomic, strong) NSString *email;
@property(nonatomic, strong) NSString *firstName;
@property(nonatomic, strong) NSString *lastName;
@property(nonatomic, strong) NSString *name;

@property(nonatomic, strong) NSString *login_token;

@property(nonatomic, strong) NSString *occupation;//职位
@property(nonatomic, strong) NSString *company;//公司
@property(nonatomic, strong) NSString *location;
@property(nonatomic, strong) NSString *public_profile_url;

@property(nonatomic, strong) NSArray<YDAccountOccupation*> *occupations;
@property(nonatomic, strong) NSArray<YDAccountEducation*> *educations;

-(void) serializeWith:(NSDictionary *) dic;

-(void) loadDB;
-(void) clear;
@end
